package edu.fpa.day0724;
import java.io.File;

public class FileDemo03 {
    public static void main(String[] args) {
        String path = "D:/zhuanyeruanjian/yichang/src/cn/sxt/day0724/FileDemo01";
        File scr = new File(path);
        System.out.println(scr.getName());
        System.out.println(scr.getPath());
        System.out.println(scr.getAbsolutePath());
        System.out.println(scr.getParent());
        System.out.println(scr.getParentFile().getName());
    }
}
